package org.balthie.demo.opensource.apache.poi.SSXS;

import java.io.IOException;
import java.io.InputStream;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public class XSSFUtils
{
    public static XSSFWorkbook readExcel(String path)
    {
        InputStream is = XSSFUtils.class.getResourceAsStream(path);
        try
        {
            XSSFWorkbook wb = new XSSFWorkbook(is);
            return wb;
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
        return null;
    }
}
